﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;

namespace Sustainalytics.ClientDW.Synchronization.SyncHbaseData
{
    public static class PropertySelector<T>
    {
        public static PropertyInfo GetPropertyInfo<PT>(Expression<Func<T, PT>> property)
        {
            return (property.Body as MemberExpression).Member as PropertyInfo;
        }
    }
}
